/* Rabbit.java
 * 
 * Alfred Olschnoegger
 * 22.05.2008
 */

package domain;

import domain.game.Game;
import domain.location.Position;
import domain.objectRules.ObjectRule;

/**
 * The rabbit class represents the hunted objects in the game
 *
 * @date 22.05.2008
 * @author Alfred Olschnoegger
 */

public class Rabbit extends GameObject{

	public Rabbit(Position pos) {
		super(pos);
	}

	@Override
	public synchronized void use(Hunter hunt, Game game) {
		hunt.increaseKills();
		m_Active = false;
	}
	
	public Rabbit clone() {
		Rabbit clone = new Rabbit(m_Pos.clone());
		
		for(ObjectRule rule : m_Rules)
			clone.m_Rules.add(rule);
		
		return clone;
	}

}


// end of Rabbit.java
